pub fn new_birthday_probability(n: u32) -> f64 {
    if n < 2 {
        panic!("Invalid input: The input number must be greater than or equal to 2.");
    }

    if n > 365 {
        return 1.0;
    }

    let mut i: u32 = n - 1;
    let mut unique_birthday_probability : f64 = 1.0;
    while i > 0 {
        unique_birthday_probability *= (365 - i) as f64 / 365 as f64;
        i -= 1;
    }

    println!("{}", 1.0 - unique_birthday_probability);

    1.0 - unique_birthday_probability
}
